from flask import Flask, render_template

app = Flask(__name__)

@app.route("/")  # 添加根路由
def root():
    return render_template('home.html')

@app.route("/home")  # 保留现有路由
def home():
    return render_template('home.html')

@app.route("/index")
def index():
    return "success"

if __name__ == "__main__":
    app.run()